package eight;

import static util.Print.print;

/**
 * Created by ab on 2016/11/3.
 */

enum Note{
    MIDDLE_C,C_SHARP,B_FLAT;//ETc.
}

class Instrument{
    public void play(Note n){
        print("Instrument.play()");
    }
}

class Wind extends Instrument{
    public void play(Note n){
        print("Wind.play() " +n);
    }
}

public class lesson1 {
    public static void tune(Instrument i){
        i.play(Note.MIDDLE_C);
    }
    public static void main(String[] args){
        Wind flute=new Wind();
        tune(flute);
    }
}
